<%@ page import="your_car_status.Diagnostic" %>



<div class="fieldcontain ${hasErrors(bean: diagnosticInstance, field: 'paint', 'error')} required">
	<label for="paint">
		<g:message code="diagnostic.paint.label" default="Paint" />
		<span class="required-indicator">*</span>
	</label>
	<g:select name="paint" from="${diagnosticInstance.constraints.paint.inList}" required="" value="${diagnosticInstance?.paint}" valueMessagePrefix="diagnostic.paint"/>
</div>

<div class="fieldcontain ${hasErrors(bean: diagnosticInstance, field: 'jack', 'error')} required">
	<label for="jack">
		<g:message code="diagnostic.jack.label" default="Jack" />
		<span class="required-indicator">*</span>
	</label>
	<g:select name="jack" from="${diagnosticInstance.constraints.jack.inList}" required="" value="${diagnosticInstance?.jack}" valueMessagePrefix="diagnostic.jack"/>
</div>

<div class="fieldcontain ${hasErrors(bean: diagnosticInstance, field: 'lugWrench', 'error')} required">
	<label for="lugWrench">
		<g:message code="diagnostic.lugWrench.label" default="Lug Wrench" />
		<span class="required-indicator">*</span>
	</label>
	<g:select name="lugWrench" from="${diagnosticInstance.constraints.lugWrench.inList}" required="" value="${diagnosticInstance?.lugWrench}" valueMessagePrefix="diagnostic.lugWrench"/>
</div>

<div class="fieldcontain ${hasErrors(bean: diagnosticInstance, field: 'lugNut', 'error')} required">
	<label for="lugNut">
		<g:message code="diagnostic.lugNut.label" default="Lug Nut" />
		<span class="required-indicator">*</span>
	</label>
	<g:select name="lugNut" from="${diagnosticInstance.constraints.lugNut.inList}" required="" value="${diagnosticInstance?.lugNut}" valueMessagePrefix="diagnostic.lugNut"/>
</div>

<div class="fieldcontain ${hasErrors(bean: diagnosticInstance, field: 'extraTire', 'error')} required">
	<label for="extraTire">
		<g:message code="diagnostic.extraTire.label" default="Extra Tire" />
		<span class="required-indicator">*</span>
	</label>
	<g:select name="extraTire" from="${diagnosticInstance.constraints.extraTire.inList}" required="" value="${diagnosticInstance?.extraTire}" valueMessagePrefix="diagnostic.extraTire"/>
</div>

<div class="fieldcontain ${hasErrors(bean: diagnosticInstance, field: 'horn', 'error')} required">
	<label for="horn">
		<g:message code="diagnostic.horn.label" default="Horn" />
		<span class="required-indicator">*</span>
	</label>
	<g:select name="horn" from="${diagnosticInstance.constraints.horn.inList}" required="" value="${diagnosticInstance?.horn}" valueMessagePrefix="diagnostic.horn"/>
</div>

<div class="fieldcontain ${hasErrors(bean: diagnosticInstance, field: 'seats', 'error')} required">
	<label for="seats">
		<g:message code="diagnostic.seats.label" default="Seats" />
		<span class="required-indicator">*</span>
	</label>
	<g:select name="seats" from="${diagnosticInstance.constraints.seats.inList}" required="" value="${diagnosticInstance?.seats}" valueMessagePrefix="diagnostic.seats"/>
</div>

<div class="fieldcontain ${hasErrors(bean: diagnosticInstance, field: 'electricSystem', 'error')} required">
	<label for="electricSystem">
		<g:message code="diagnostic.electricSystem.label" default="Electric System" />
		<span class="required-indicator">*</span>
	</label>
	<g:select name="electricSystem" from="${diagnosticInstance.constraints.electricSystem.inList}" required="" value="${diagnosticInstance?.electricSystem}" valueMessagePrefix="diagnostic.electricSystem"/>
</div>

<div class="fieldcontain ${hasErrors(bean: diagnosticInstance, field: 'handles', 'error')} required">
	<label for="handles">
		<g:message code="diagnostic.handles.label" default="Handles" />
		<span class="required-indicator">*</span>
	</label>
	<g:select name="handles" from="${diagnosticInstance.constraints.handles.inList}" required="" value="${diagnosticInstance?.handles}" valueMessagePrefix="diagnostic.handles"/>
</div>

<div class="fieldcontain ${hasErrors(bean: diagnosticInstance, field: 'locks', 'error')} required">
	<label for="locks">
		<g:message code="diagnostic.locks.label" default="Locks" />
		<span class="required-indicator">*</span>
	</label>
	<g:select name="locks" from="${diagnosticInstance.constraints.locks.inList}" required="" value="${diagnosticInstance?.locks}" valueMessagePrefix="diagnostic.locks"/>
</div>

<div class="fieldcontain ${hasErrors(bean: diagnosticInstance, field: 'controlBottom', 'error')} required">
	<label for="controlBottom">
		<g:message code="diagnostic.controlBottom.label" default="Control Bottom" />
		<span class="required-indicator">*</span>
	</label>
	<g:select name="controlBottom" from="${diagnosticInstance.constraints.controlBottom.inList}" required="" value="${diagnosticInstance?.controlBottom}" valueMessagePrefix="diagnostic.controlBottom"/>
</div>

<div class="fieldcontain ${hasErrors(bean: diagnosticInstance, field: 'lightsandindicators', 'error')} required">
	<label for="lightsandindicators">
		<g:message code="diagnostic.lightsandindicators.label" default="Lightsandindicators" />
		<span class="required-indicator">*</span>
	</label>
	<g:select name="lightsandindicators" from="${diagnosticInstance.constraints.lightsandindicators.inList}" required="" value="${diagnosticInstance?.lightsandindicators}" valueMessagePrefix="diagnostic.lightsandindicators"/>
</div>

<div class="fieldcontain ${hasErrors(bean: diagnosticInstance, field: 'cleanliness', 'error')} required">
	<label for="cleanliness">
		<g:message code="diagnostic.cleanliness.label" default="Cleanliness" />
		<span class="required-indicator">*</span>
	</label>
	<g:select name="cleanliness" from="${diagnosticInstance.constraints.cleanliness.inList}" required="" value="${diagnosticInstance?.cleanliness}" valueMessagePrefix="diagnostic.cleanliness"/>
</div>

<div class="fieldcontain ${hasErrors(bean: diagnosticInstance, field: 'airConditioning', 'error')} required">
	<label for="airConditioning">
		<g:message code="diagnostic.airConditioning.label" default="Air Conditioning" />
		<span class="required-indicator">*</span>
	</label>
	<g:select name="airConditioning" from="${diagnosticInstance.constraints.airConditioning.inList}" required="" value="${diagnosticInstance?.airConditioning}" valueMessagePrefix="diagnostic.airConditioning"/>
</div>

<div class="fieldcontain ${hasErrors(bean: diagnosticInstance, field: 'audioSystem', 'error')} required">
	<label for="audioSystem">
		<g:message code="diagnostic.audioSystem.label" default="Audio System" />
		<span class="required-indicator">*</span>
	</label>
	<g:select name="audioSystem" from="${diagnosticInstance.constraints.audioSystem.inList}" required="" value="${diagnosticInstance?.audioSystem}" valueMessagePrefix="diagnostic.audioSystem"/>
</div>

<div class="fieldcontain ${hasErrors(bean: diagnosticInstance, field: 'alarm', 'error')} required">
	<label for="alarm">
		<g:message code="diagnostic.alarm.label" default="Alarm" />
		<span class="required-indicator">*</span>
	</label>
	<g:select name="alarm" from="${diagnosticInstance.constraints.alarm.inList}" required="" value="${diagnosticInstance?.alarm}" valueMessagePrefix="diagnostic.alarm"/>
</div>

<div class="fieldcontain ${hasErrors(bean: diagnosticInstance, field: 'glasses', 'error')} required">
	<label for="glasses">
		<g:message code="diagnostic.glasses.label" default="Glasses" />
		<span class="required-indicator">*</span>
	</label>
	<g:select name="glasses" from="${diagnosticInstance.constraints.glasses.inList}" required="" value="${diagnosticInstance?.glasses}" valueMessagePrefix="diagnostic.glasses"/>
</div>

<div class="fieldcontain ${hasErrors(bean: diagnosticInstance, field: 'wiper', 'error')} required">
	<label for="wiper">
		<g:message code="diagnostic.wiper.label" default="Wiper" />
		<span class="required-indicator">*</span>
	</label>
	<g:select name="wiper" from="${diagnosticInstance.constraints.wiper.inList}" required="" value="${diagnosticInstance?.wiper}" valueMessagePrefix="diagnostic.wiper"/>
</div>

<div class="fieldcontain ${hasErrors(bean: diagnosticInstance, field: 'odometer', 'error')} required">
	<label for="odometer">
		<g:message code="diagnostic.odometer.label" default="Odometer" />
		<span class="required-indicator">*</span>
	</label>
	<g:select name="odometer" from="${diagnosticInstance.constraints.odometer.inList}" required="" value="${diagnosticInstance?.odometer}" valueMessagePrefix="diagnostic.odometer"/>
</div>

<div class="fieldcontain ${hasErrors(bean: diagnosticInstance, field: 'allowedKM', 'error')} required">
	<label for="allowedKM">
		<g:message code="diagnostic.allowedKM.label" default="Allowed KM" />
		<span class="required-indicator">*</span>
	</label>
	<g:select name="allowedKM" from="${diagnosticInstance.constraints.allowedKM.inList}" required="" value="${diagnosticInstance?.allowedKM}" valueMessagePrefix="diagnostic.allowedKM"/>
</div>

<div class="fieldcontain ${hasErrors(bean: diagnosticInstance, field: 'water', 'error')} required">
	<label for="water">
		<g:message code="diagnostic.water.label" default="Water" />
		<span class="required-indicator">*</span>
	</label>
	<g:select name="water" from="${diagnosticInstance.constraints.water.inList}" required="" value="${diagnosticInstance?.water}" valueMessagePrefix="diagnostic.water"/>
</div>

<div class="fieldcontain ${hasErrors(bean: diagnosticInstance, field: 'engineOil', 'error')} required">
	<label for="engineOil">
		<g:message code="diagnostic.engineOil.label" default="Engine Oil" />
		<span class="required-indicator">*</span>
	</label>
	<g:select name="engineOil" from="${diagnosticInstance.constraints.engineOil.inList}" required="" value="${diagnosticInstance?.engineOil}" valueMessagePrefix="diagnostic.engineOil"/>
</div>

<div class="fieldcontain ${hasErrors(bean: diagnosticInstance, field: 'powerSteeringFluid', 'error')} required">
	<label for="powerSteeringFluid">
		<g:message code="diagnostic.powerSteeringFluid.label" default="Power Steering Fluid" />
		<span class="required-indicator">*</span>
	</label>
	<g:select name="powerSteeringFluid" from="${diagnosticInstance.constraints.powerSteeringFluid.inList}" required="" value="${diagnosticInstance?.powerSteeringFluid}" valueMessagePrefix="diagnostic.powerSteeringFluid"/>
</div>

<div class="fieldcontain ${hasErrors(bean: diagnosticInstance, field: 'transmissionFluid', 'error')} required">
	<label for="transmissionFluid">
		<g:message code="diagnostic.transmissionFluid.label" default="Transmission Fluid" />
		<span class="required-indicator">*</span>
	</label>
	<g:select name="transmissionFluid" from="${diagnosticInstance.constraints.transmissionFluid.inList}" required="" value="${diagnosticInstance?.transmissionFluid}" valueMessagePrefix="diagnostic.transmissionFluid"/>
</div>

<div class="fieldcontain ${hasErrors(bean: diagnosticInstance, field: 'brakeFluid', 'error')} required">
	<label for="brakeFluid">
		<g:message code="diagnostic.brakeFluid.label" default="Brake Fluid" />
		<span class="required-indicator">*</span>
	</label>
	<g:select name="brakeFluid" from="${diagnosticInstance.constraints.brakeFluid.inList}" required="" value="${diagnosticInstance?.brakeFluid}" valueMessagePrefix="diagnostic.brakeFluid"/>
</div>

<div class="fieldcontain ${hasErrors(bean: diagnosticInstance, field: 'warningLights', 'error')} required">
	<label for="warningLights">
		<g:message code="diagnostic.warningLights.label" default="Warning Lights" />
		<span class="required-indicator">*</span>
	</label>
	<g:select name="warningLights" from="${diagnosticInstance.constraints.warningLights.inList}" required="" value="${diagnosticInstance?.warningLights}" valueMessagePrefix="diagnostic.warningLights"/>
</div>

<div class="fieldcontain ${hasErrors(bean: diagnosticInstance, field: 'shiftSoftness', 'error')} required">
	<label for="shiftSoftness">
		<g:message code="diagnostic.shiftSoftness.label" default="Shift Softness" />
		<span class="required-indicator">*</span>
	</label>
	<g:select name="shiftSoftness" from="${diagnosticInstance.constraints.shiftSoftness.inList}" required="" value="${diagnosticInstance?.shiftSoftness}" valueMessagePrefix="diagnostic.shiftSoftness"/>
</div>

<div class="fieldcontain ${hasErrors(bean: diagnosticInstance, field: 'shiftRigidity', 'error')} required">
	<label for="shiftRigidity">
		<g:message code="diagnostic.shiftRigidity.label" default="Shift Rigidity" />
		<span class="required-indicator">*</span>
	</label>
	<g:select name="shiftRigidity" from="${diagnosticInstance.constraints.shiftRigidity.inList}" required="" value="${diagnosticInstance?.shiftRigidity}" valueMessagePrefix="diagnostic.shiftRigidity"/>
</div>

<div class="fieldcontain ${hasErrors(bean: diagnosticInstance, field: 'breakSystem', 'error')} required">
	<label for="breakSystem">
		<g:message code="diagnostic.breakSystem.label" default="Break System" />
		<span class="required-indicator">*</span>
	</label>
	<g:select name="breakSystem" from="${diagnosticInstance.constraints.breakSystem.inList}" required="" value="${diagnosticInstance?.breakSystem}" valueMessagePrefix="diagnostic.breakSystem"/>
</div>

<div class="fieldcontain ${hasErrors(bean: diagnosticInstance, field: 'handbrake', 'error')} required">
	<label for="handbrake">
		<g:message code="diagnostic.handbrake.label" default="Handbrake" />
		<span class="required-indicator">*</span>
	</label>
	<g:select name="handbrake" from="${diagnosticInstance.constraints.handbrake.inList}" required="" value="${diagnosticInstance?.handbrake}" valueMessagePrefix="diagnostic.handbrake"/>
</div>

<div class="fieldcontain ${hasErrors(bean: diagnosticInstance, field: 'terminalsConditions', 'error')} required">
	<label for="terminalsConditions">
		<g:message code="diagnostic.terminalsConditions.label" default="Terminals Conditions" />
		<span class="required-indicator">*</span>
	</label>
	<g:select name="terminalsConditions" from="${diagnosticInstance.constraints.terminalsConditions.inList}" required="" value="${diagnosticInstance?.terminalsConditions}" valueMessagePrefix="diagnostic.terminalsConditions"/>
</div>

<div class="fieldcontain ${hasErrors(bean: diagnosticInstance, field: 'physicalState', 'error')} required">
	<label for="physicalState">
		<g:message code="diagnostic.physicalState.label" default="Physical State" />
		<span class="required-indicator">*</span>
	</label>
	<g:select name="physicalState" from="${diagnosticInstance.constraints.physicalState.inList}" required="" value="${diagnosticInstance?.physicalState}" valueMessagePrefix="diagnostic.physicalState"/>
</div>

<div class="fieldcontain ${hasErrors(bean: diagnosticInstance, field: 'physicalStateOfWire', 'error')} required">
	<label for="physicalStateOfWire">
		<g:message code="diagnostic.physicalStateOfWire.label" default="Physical State Of Wire" />
		<span class="required-indicator">*</span>
	</label>
	<g:select name="physicalStateOfWire" from="${diagnosticInstance.constraints.physicalStateOfWire.inList}" required="" value="${diagnosticInstance?.physicalStateOfWire}" valueMessagePrefix="diagnostic.physicalStateOfWire"/>
</div>

<div class="fieldcontain ${hasErrors(bean: diagnosticInstance, field: 'vehicleLicense', 'error')} required">
	<label for="vehicleLicense">
		<g:message code="diagnostic.vehicleLicense.label" default="Vehicle License" />
		<span class="required-indicator">*</span>
	</label>
	<g:select name="vehicleLicense" from="${diagnosticInstance.constraints.vehicleLicense.inList}" required="" value="${diagnosticInstance?.vehicleLicense}" valueMessagePrefix="diagnostic.vehicleLicense"/>
</div>

<div class="fieldcontain ${hasErrors(bean: diagnosticInstance, field: 'policyInssurance', 'error')} required">
	<label for="policyInssurance">
		<g:message code="diagnostic.policyInssurance.label" default="Policy Inssurance" />
		<span class="required-indicator">*</span>
	</label>
	<g:select name="policyInssurance" from="${diagnosticInstance.constraints.policyInssurance.inList}" required="" value="${diagnosticInstance?.policyInssurance}" valueMessagePrefix="diagnostic.policyInssurance"/>
</div>

<div class="fieldcontain ${hasErrors(bean: diagnosticInstance, field: 'verificationProof', 'error')} required">
	<label for="verificationProof">
		<g:message code="diagnostic.verificationProof.label" default="Verification Proof" />
		<span class="required-indicator">*</span>
	</label>
	<g:select name="verificationProof" from="${diagnosticInstance.constraints.verificationProof.inList}" required="" value="${diagnosticInstance?.verificationProof}" valueMessagePrefix="diagnostic.verificationProof"/>
</div>

<div class="fieldcontain ${hasErrors(bean: diagnosticInstance, field: 'date', 'error')} required">
	<label for="date">
		<g:message code="diagnostic.date.label" default="Date" />
		<span class="required-indicator">*</span>
	</label>
	<g:datePicker name="date" precision="day"  value="${diagnosticInstance?.date}"  />
</div>

<div class="fieldcontain ${hasErrors(bean: diagnosticInstance, field: 'mechanicalTechnician', 'error')} required">
	<label for="mechanicalTechnician">
		<g:message code="diagnostic.mechanicalTechnician.label" default="Mechanical Technician" />
		<span class="required-indicator">*</span>
	</label>
	<g:select id="mechanicalTechnician" name="mechanicalTechnician.id" from="${your_car_status.MechanicalTechnician.list()}" optionKey="id" optionValue="name" required="" value="${diagnosticInstance?.mechanicalTechnician?.id}" class="many-to-one"/>
</div>

<div class="fieldcontain ${hasErrors(bean: diagnosticInstance, field: 'observations', 'error')} ">
	<label for="observations">
		<g:message code="diagnostic.observations.label" default="Observations" />
		
	</label>
	<g:textField name="observations" value="${diagnosticInstance?.observations}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: diagnosticInstance, field: 'vehicle', 'error')} required">
	<label for="vehicle">
		<g:message code="diagnostic.vehicle.label" default="Vehicle" />
		<span class="required-indicator">*</span>
	</label>
	<g:select id="vehicle" name="vehicle.id" from="${your_car_status.Vehicle.list()}" optionKey="id" optionValue="licensePlate" required="" value="${diagnosticInstance?.vehicle?.id}" class="many-to-one"/>
</div>

